package com.by.hellofreemarker.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class WelcomeController {

    @RequestMapping("/index")
    public String welcome(Model model) {
        model.addAttribute("user", "Hello");
        return "index";
    }

}
